package com.healthcare.cameraview.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ApiConfig {
    @Value("${dashscope.api.key}")
    private String apiKey;

    @Value("${camera.source-type:auto}")
    private String cameraSourceType;
    
    @Value("${camera.url:}")
    private String cameraUrl;
    
    @Value("${camera.device-name:自己的设备名}")
    private String cameraDeviceName;
    
    @Value("${camera.width:640}")
    private int cameraWidth;
    
    @Value("${camera.height:480}")
    private int cameraHeight;
    
    @Value("${camera.fps:30}")
    private int cameraFps;

    public String getApiKey() {
        return apiKey;
    }
    
    public String getCameraSourceType() {
        return cameraSourceType;
    }
    
    public String getCameraUrl() {
        return cameraUrl;
    }
    
    public String getCameraDeviceName() {
        return cameraDeviceName;
    }
    
    public int getCameraWidth() {
        return cameraWidth;
    }
    
    public int getCameraHeight() {
        return cameraHeight;
    }
    
    public int getCameraFps() {
        return cameraFps;
    }
}